package com.hooware.controller;

import com.hooware.domain.SysLog;
import com.hooware.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/sysLog")
public class LogController {
    @Autowired
    private ILogService iLogService;

    @RequestMapping("/findAll.do")
    public String findAll(Model model) {
        List<SysLog> sysLogs = iLogService.findAll();
        model.addAttribute("sysLogs",sysLogs);
        return "syslog-list";
    }
}
